package org.jeecg.modules.charge.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.charge.entity.ChargeInvoiceShared;
import org.jeecg.modules.charge.mapper.ChargeInvoiceSharedMapper;
import org.jeecg.modules.charge.service.IChargeInvoiceSharedService;
import org.jeecg.modules.charge.vo.CheckOutMangroup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 领用部门共享
 * @Author: jeecg-boot
 * @Date:   2019-07-18
 * @Version: V1.0
 */
@Service
public class ChargeInvoiceSharedServiceImpl extends ServiceImpl<ChargeInvoiceSharedMapper, ChargeInvoiceShared> implements IChargeInvoiceSharedService {

    @Autowired
    private ChargeInvoiceSharedMapper chargeInvoiceSharedMapper;

    @Override
    public Long duplicateCheckCountSql(CheckOutMangroup checkOutMangroup) {
        return chargeInvoiceSharedMapper.duplicateCheckCountSql(checkOutMangroup);
    }

    @Override
    public Long duplicateCheckCountSqlNoDataId(CheckOutMangroup checkOutMangroup) {
        return chargeInvoiceSharedMapper.duplicateCheckCountSqlNoDataId(checkOutMangroup);
    }

    @Override
    public Integer selectIsHave(String takeDeptId, String officeId) {
        return chargeInvoiceSharedMapper.selectIsHave(takeDeptId,officeId);
    }
}
